# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-superior
pkgdesc="Samsung Galaxy Premier"
pkgver=2
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="postmarketos-base linux-samsung-superior mkbootimg"
makedepends="devicepkg-dev"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
source="
	deviceinfo
	modules-load.conf
"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Wifi firmware"
	depends="firmware-samsung-superior"
	mkdir "$subpkgdir"
}

sha512sums="
b7e909e847ce53a5230c4896310e3b757de51db447b8524f170b0303abce23edc77f076a3765dfeecd4f549f133910956ebc0001d392bba855149561a6e286c5  deviceinfo
761387a44a2280589336a69b24a24bc33e81aebc441f4033ffd992820edee6b386cc817d7b8519cbf52467a56180ec6b9a88929ee54e73f01217107ef206cab4  modules-load.conf
"
